package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2020-08-19
 */
@TableName("wechat_user")
@ApiModel(value="WechatUser对象", description="")
public class WechatUser extends Model<WechatUser> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "tr_id", type = IdType.AUTO)
    private Integer trId;

    @ApiModelProperty(value = "邮箱")
    @TableField("tr_email")
    private String trEmail;

    @ApiModelProperty(value = "用户密码")
    @TableField("tr_passwrod")
    private String trPasswrod;

    @ApiModelProperty(value = "用户电话")
    @TableField("tr_phone")
    private String trPhone;

    @ApiModelProperty(value = "是否删除 0 正常/1删除")
    @TableField("tr_is_delete")
    private Integer trIsDelete;

    @ApiModelProperty(value = "修改时间")
    @TableField("tr_update_time")
    private String trUpdateTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("tr_create_time")
    private String trCreateTime;

    @ApiModelProperty(value = "关联小程序id ")
    @TableField("tr_open_id")
    private String trOpenId;

    @ApiModelProperty(value = "是否为企业 0不是/1是企业")
    @TableField("tr_is_company")
    private Integer trIsCompany;

    public Integer getTrId() {
        return trId;
    }

    public void setTrId(Integer trId) {
        this.trId = trId;
    }
    public String getTrEmail() {
        return trEmail;
    }

    public void setTrEmail(String trEmail) {
        this.trEmail = trEmail;
    }
    public String getTrPasswrod() {
        return trPasswrod;
    }

    public void setTrPasswrod(String trPasswrod) {
        this.trPasswrod = trPasswrod;
    }
    public String getTrPhone() {
        return trPhone;
    }

    public void setTrPhone(String trPhone) {
        this.trPhone = trPhone;
    }
    public Integer getTrIsDelete() {
        return trIsDelete;
    }

    public void setTrIsDelete(Integer trIsDelete) {
        this.trIsDelete = trIsDelete;
    }
    public String getTrUpdateTime() {
        return trUpdateTime;
    }

    public void setTrUpdateTime(String trUpdateTime) {
        this.trUpdateTime = trUpdateTime;
    }
    public String getTrCreateTime() {
        return trCreateTime;
    }

    public void setTrCreateTime(String trCreateTime) {
        this.trCreateTime = trCreateTime;
    }
    public String getTrOpenId() {
        return trOpenId;
    }

    public void setTrOpenId(String trOpenId) {
        this.trOpenId = trOpenId;
    }
    public Integer getTrIsCompany() {
        return trIsCompany;
    }

    public void setTrIsCompany(Integer trIsCompany) {
        this.trIsCompany = trIsCompany;
    }

    @Override
    protected Serializable pkVal() {
        return this.trId;
    }

    @Override
    public String toString() {
        return "WechatUser{" +
            "trId=" + trId +
            ", trEmail=" + trEmail +
            ", trPasswrod=" + trPasswrod +
            ", trPhone=" + trPhone +
            ", trIsDelete=" + trIsDelete +
            ", trUpdateTime=" + trUpdateTime +
            ", trCreateTime=" + trCreateTime +
            ", trOpenId=" + trOpenId +
            ", trIsCompany=" + trIsCompany +
        "}";
    }
}
